onInvoiceEditorAddressChanged (event)
Description
Event called when a customer or invoice address is changed or cleared in the invoice editor.

Parameters
windowHandle number
customerAddressID number
invoiceAddressID number

Return value
not applicable

Example
-- create event handler for onInvoiceEditorAddressChanged
function onInvoiceEditorAddressChanged(windowHandle, customerAddressID, invoiceAddressID)
    app.showNotification("An address was changed in the invoice editor")
    app.log("Invoice editor window handle is " .. windowHandle)
    app.log("New customer address is " .. customerAddressID)
    app.log("New invoice addressID is " .. invoiceAddressID)
end

Comments
Event is not called when addresses are copied across using the "<" or ">" buttons.

See also

Back